package com.archive.forum.enums;

public enum CommentTypeEnum {
    POST(1),
    COMMENT(2);
    private Integer type;
    public Integer getType() {
        return type;
    }

    CommentTypeEnum(Integer type) {
        this.type = type;
    }
    public static boolean isExist(Integer type) {
        for (CommentTypeEnum commentTypeEnum : CommentTypeEnum.values()) {
            if (commentTypeEnum.getType().equals(type)) {
            return false;
            }
        }
        return true;
    }
}
